package study02;
import java.util.Scanner;

/**
* @author GZQ
* @Date 2023/11/5
 */

//库存清单
public class Inventory {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String brand1 = "华为";
        double size1 = 6.71;
        double price1 = 3688.0;
        String configuration1 = "12+256g 全面屏";
        System.out.println("品牌型号：" +brand1);
        System.out.println("尺寸：" +size1);
        System.out.println("价格：" +price1);
        System.out.println("配置：" +configuration1);
        System.out.println("请输入华为手机的库存：");
        int inventory1 = input.nextInt();
        double total_money1 = 590080.0;
        System.out.println("请输入华为手机的总金额：" + total_money1);

        String brand2 = "小米";
        double size2 = 6.81;
        double price2 = 4988.0;
        String configuration2 = "12+256g 全面屏";
        System.out.println("品牌型号：" + brand2);
        System.out.println("尺寸：" + size2);
        System.out.println("价格：" + price2);
        System.out.println("配置：" + configuration2);
        System.out.println("请输入小米手机的库存: ");
        int inventory2 = input.nextInt();
        double total_money2 = 498800.0;
        System.out.println("请输入小米手机的总金额：" + total_money2);

        System.out.println("--------------库存清单--------------");
        System.out.println("品牌型号    尺寸  价格  配置  库存数量    总价");
        System.out.println(brand1   +size1  +price1 +configuration1 +inventory1);
        System.out.println(brand2   +size2  +price2 +configuration2 +inventory2);
        System.out.println("-----------------------------------------");
        System.out.println("总库存：" +(inventory1+inventory2));
        System.out.println("库存总价：" +(total_money1+total_money2) + "￥");
    }
}
